package base;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;


public class Bulletin {
	   private final StringProperty content;
	    private final StringProperty date;
	    private final StringProperty postname;
	    
	    
	    public Bulletin(String content, String date,String postname){
	        this.content = new SimpleStringProperty(content);
	        this.date = new SimpleStringProperty(date);

	        this.postname = new SimpleStringProperty(postname);
	    }
	    
	    public String getContent() {
	        return content.get();
	    }
	    
	    public StringProperty contentProperty() {
	        return content;
	    }
	    
	    public StringProperty dateProperty() {
	        return date;
	    }
    
	    public String getDate() {
	        return date.get();
	    }
	    
	    public StringProperty postnameProperty() {
	        return postname;
	    }
	    
	    public String getPostname() {
	        return postname.get();
	    }

	  
	    
}
